// express
import express from 'express'
// import cors from 'cors'
import routes from './routes'

const app = express()

app.use(express.json({ limit: '10000kb' }))
app.use(express.urlencoded({ extended: true, limit: '10000kb' }))
// app.use(cors())

const PORT = 3000

app.listen(PORT, async () => {
  console.log('App is running at http://localhost:' + PORT)
  routes(app)
})
